﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style >
        th {
        text-align :center ;
        width :500px;
        height :50px;
       color :blue ;
       border-color:coral;
       
        
        }
        body {
        margin-top :50px;
        color:beige;
       
       
        }
        td {
         height :50px ;
         color:cornflowerblue; 
         border-color:coral;
         font-family:'Microsoft Yi Baiti';
        }
    </style>
   <asp:GridView  runat ="server"   ID ="gv1" OnRowCancelingEdit ="gv1_RowCancelingEdit"  OnRowDeleting ="gv1_RowDeleting"  OnRowEditing ="gv1_RowEditing"  OnRowUpdating ="gv1_RowUpdating"  AutoGenerateColumns ="false" >
       <Columns >
           <asp:BoundField DataField ="Id" HeaderText ="Id" ReadOnly ="true" />
           <asp:BoundField  DataField ="Title"  HeaderText ="标题" />
           <asp:BoundField  DataField ="Content" HeaderText ="内容" />
           <asp:BoundField  DataField ="Author" HeaderText ="作者" />
           <asp:CommandField  HeaderText ="操作"  ShowDeleteButton ="true"  ShowEditButton ="true" />
       </Columns>
       <RowStyle  HorizontalAlign ="Center" />
   </asp:GridView>
    <p ></p>
    <p ></p>
    <asp:Button Text ="添加"  OnClick ="Unnamed_Click"  runat ="server" Height ="50px" Width ="80px"  Font-Size ="X-Large" ForeColor ="#ff0066" BackColor ="#66ffff"/>

</asp:Content>
